Skip to content

optimize: optimize healthcheck#5048

Open
ningmingxiao wants to merge 1 commit into
containerd:mainfrom
ningmingxiao:speed_up
Open

optimize: optimize healthcheck#5048
ningmingxiao wants to merge 1 commit into
containerd:mainfrom
ningmingxiao:speed_up

Conversation

@ningmingxiao

@ningmingxiao ningmingxiao commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

reduce about 100ms
ref:#5047

@ningmingxiao ningmingxiao force-pushed the speed_up branch 2 times, most recently from 32becea to 4058db1 Compare July 6, 2026 09:54
@ningmingxiao ningmingxiao marked this pull request as draft July 6, 2026 10:02
@ningmingxiao ningmingxiao marked this pull request as ready for review July 6, 2026 10:04
@ningmingxiao ningmingxiao marked this pull request as draft July 6, 2026 10:27
@ningmingxiao ningmingxiao marked this pull request as ready for review July 6, 2026 11:12
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
@AkihiroSuda AkihiroSuda requested a review from haytok July 7, 2026 02:36
@AkihiroSuda AkihiroSuda added this to the v2.4.0 milestone Jul 7, 2026
Comment on lines +552 to +553
hcStr, ok := label[labels.HealthCheck]
if !ok || hcStr == "" {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition seems reversed:

Suggested change
hcStr, ok := label[labels.HealthCheck]
if !ok || hcStr == "" {
if hcStr, ok := label[labels.HealthCheck]; ok && hcStr != "" {

Comment on lines -462 to -466
statusC, err := task.Wait(ctx)
if err != nil {
return err
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, this seems unrelated to the optimization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants